<?php
	# MantisConnect - a Dot Net library to connect to Mantis Bug Tracker
	# Copyright (C) 2004-2005  Victor Boctor - vboctor@users.sourceforge.net
	# This program is distributed under dual licensing.  These include
	# GPL and a commercial licenses.  Victor Boctor reserves the right to
	# change the license of future releases.
	# See docs/ folder for more details

	# --------------------------------------------------------
	# $Id: mc_account_api.php,v 1.2 2005/05/13 23:04:41 vboctor Exp $
	# --------------------------------------------------------

	function mci_account_get_array_by_id( $p_user_id ) {
		$t_result = array();
		$t_result['id'] = $p_user_id;
		$t_result['name'] = user_get_field( $p_user_id, 'username' );
		$t_dummy = user_get_field( $p_user_id, 'realname' );
		if( !empty( $t_dummy ) ) {
			$t_result['real_name'] = $t_dummy;
		}
		$t_dummy = user_get_field( $p_user_id, 'email' );
		if( !empty( $t_dummy ) ) {
			$t_result['email'] = $t_dummy;
		}
		return $t_result;
	}
?>
